using System;

namespace Headspring.Training.Domain.Model
{
	public class JobRoleTenure
	{
		private DateTime _startDate;
		private DateTime _endDate;
		private JobRole _role;

		public JobRoleTenure()
		{
		}

		public JobRoleTenure(JobRole role, DateTime startDate, DateTime endDate)
		{
			_role = role;
			_startDate = startDate;
			_endDate = endDate;
		}

		public DateTime StartDate
		{
			get { return _startDate; }
			set { _startDate = value; }
		}

		public DateTime EndDate
		{
			get { return _endDate; }
			set { _endDate = value; }
		}

		public JobRole Role
		{
			get { return _role; }
			set { _role = value; }
		}

		public override string ToString()
		{
			return string.Format("{0}-{1}: {2}", StartDate, EndDate, Role);
		}
	}
}